package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicProGetDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2013-08-12
 */
public interface LogicProGetDAO {

    /**
     * 插入数据
     * @param logicProGetDO
     * @return 插入数据的主键
     */
    public String insertLogicProGetDO(LogicProGetDO logicProGetDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicProGetDO
     * @return 查出的记录数
     */
    public Integer countLogicProGetDOByExample(LogicProGetDO logicProGetDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicProGetDO
     * @return 受影响的行数
     */
    public Integer updateLogicProGetDO(LogicProGetDO logicProGetDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicProGetDO
     * @return 对象列表
     */
    public List<LogicProGetDO> findListByExample(LogicProGetDO logicProGetDO) throws DataAccessException;

    /**
     * 根据主键获取logicProGetDO
     * @param id
     * @return logicProGetDO
     */
    public LogicProGetDO findLogicProGetDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProGetDOByPrimaryKey(String id) throws DataAccessException;
    
    /**
     * 查询
     * @param 
     * @return LogicProGetDO
     */
    public List<LogicProGetDO> find(SearchConditions scs) throws DataAccessException;
    
    /**
     * 
     * @param LogicProGetDO
     * @return 
     */
    public Integer count(SearchConditions scs) throws DataAccessException;

}